package com.zbf.web;

import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/18  11:06
 * 描述:
 */
@RestController
public class TestController1 {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("getList")
    public Object getList(@RequestBody Map<String,Object> map){

        PageInfo pageInfo = restTemplate.postForObject("http://EUREKA-CLIENT2/getUserList", map, PageInfo.class);

        return  pageInfo;
    }

}
